#include <include/cstl.h>

int main()
{
    size_t size = 10;
    size_t index = 0;
    cstl_init();
    void* old = cc_malloc(size);
    // cc_free(old);

    void* new = 0;
    for (index = 0; index < 20000; ++index)
    {
        cc_free(old);
        new = cc_malloc(size);
        if (old != new)
        {
            // printf("failed! %x %x\n", old , new);
        }
        old = new;
    }

    cc_free(old);

    cstl_exit();
    return 0;
}

